			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class Inventory : EntityBase
	{
		[DataMember]
		private InventoryRow row;
		
		public Inventory(InventoryRow row)
		{
			this.row = row;
		}
		
		public Inventory()
		{
			this.row = new InventoryRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public DateTime Date
		{
			get { return row.Date; }
			set { row.Date = value; }
		}

		[DataMember]
		public int StoreId
		{
			get { return row.StoreId; }
			set { row.StoreId = value; }
		}

		[DataMember]
		public int ArticleId
		{
			get { return row.ArticleId; }
			set { row.ArticleId = value; }
		}

		[DataMember]
		public string Description
		{
			get { return row.Description; }
			set { row.Description = value; }
		}

		[DataMember]
		public decimal? Quantity
		{
			get { return row.Quantity; }
			set { row.Quantity = value; }
		}

		[DataMember]
		public decimal Cost
		{
			get { return row.Cost; }
			set { row.Cost = value; }
		}

		[DataMember]
		public decimal? Retail
		{
			get { return row.Retail; }
			set { row.Retail = value; }
		}

		[DataMember]
		public decimal? GP
		{
			get { return row.GP; }
			set { row.GP = value; }
		}

		
		public InventoryRow GetRow()
        {
            return row;
        }
		
	} 
} 
